﻿using System;
using System.Xml.Serialization;

namespace Sinacor.Deployment.Setup.Parameter
{
    [Serializable]
    public class DataBaseConnection
    {
        [XmlAttribute()]
        public string TNSName { get; set; }
        [XmlAttribute()]
        public string User { get; set; }
        [XmlAttribute()]
        public string Password { get; set; }
        [XmlAttribute()]
        public bool IsEncrypted { get; set; }
        [XmlAttribute()]
        public string IsEncryptedString
        {
            get { return IsEncrypted ? "1" : "0"; }
            set { }
        }
    }
}
